package com.rem.designPattern.builder建造者;

/**
 * @author Rem
 * @date 2022-11-16
 */
public class Client {
    public static void main(String[] args) {
        HouseDirector houseDirector = new HouseDirector();
        House house;
        houseDirector.setHouseBuilder(new NormalRoomBuilder());
        house = houseDirector.buildHouse();
        System.out.println(house);

        System.out.println("----------------------");

        houseDirector.setHouseBuilder(new VillaBuilder());
        house = houseDirector.buildHouse();
        System.out.println(house);
    }
}
